<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var wg = prompt('文哥喜欢什么颜色？')
        var ttt = wg == '绿色' ? '咱们还是好兄弟' : '文哥恭喜你';
        alert(ttt)
        var time = prompt('输入0-59之间的一个数字')
        var tar = time < 10 ? '0' + time : time;
        alert(tar)
    </script>
</body>

</html>